package edu.szu.huhanpeng.doodlingFight.controller.preReg 
{
	import edu.szu.huhanpeng.doodlingFight.model.ChessGroupProxy;
	import edu.szu.huhanpeng.doodlingFight.model.data.ChessGroupData;
	import edu.szu.huhanpeng.doodlingFight.model.data.GameData;
	import edu.szu.huhanpeng.doodlingFight.model.data.ScoreData;
	import edu.szu.huhanpeng.doodlingFight.model.GameProxy;
	import edu.szu.huhanpeng.doodlingFight.model.ScoreProxy;
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.interfaces.INotifier;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * 预注册Proxy
	 * @author Huhanpeng
	 */
	public class PreRegProxy extends SimpleCommand implements ICommand, INotifier 
	{
		
		override public function execute(note:INotification):void 
		{
			facade.registerProxy( new ChessGroupProxy(new ChessGroupData()) );
			
			facade.registerProxy( new GameProxy(new GameData()) );
			
			facade.registerProxy( new ScoreProxy() );
			
			//facade.retrieveProxy( ScoreProxy.NAME ).setData(new ScoreData());
		}
		
	}

}